/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.OneToMany;
import java.util.List;
import javax.persistence.CascadeType;

/**
 *
 * @author edd
 */
@Entity (name = "Product")
@Inheritance(strategy= InheritanceType.TABLE_PER_CLASS)
public abstract class ProductEntity extends DataObjectEntity implements Serializable {

    private String productName;
    private int warehouseLife;
    private long casesOfHour;
   

    public ProductEntity() {
        super();
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }




    public int getWarehouseLife() {
        return warehouseLife;
    }

    public void setWarehouseLife(int warehouseLife) {
        this.warehouseLife = warehouseLife;
    }

    @Override
    public String toString() {
        return productName;
    }
    
    @Override
    public String childToString() {
        //return "ProductEntity{" + "productName=" + productName + ", warehouseLife=" + warehouseLife + ", pickingOrder=" + pickingOrder + ", reservations=" + reservations + '}';
    return "changed";
    }

    public long getCasesOfHour() {
        return casesOfHour;
    }

    public void setCasesOfHour(long casesOfHour) {
        this.casesOfHour = casesOfHour;
    }
}
